package com.yang.zngcxyxkjs.mapper;

import com.yang.zngcxyxkjs.pojo.Application;
import com.yang.zngcxyxkjs.pojo.Competition;
import com.yang.zngcxyxkjs.pojo.Favorite;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FavoriteMapper {

    Boolean insertFavorite(@Param("userNo") String userNo,@Param("comId") Integer comId,@Param("comName") String comName,
                           @Param("dutyTeacher") String dutyTeacher,@Param("teaPhone") String teaphone);

    Favorite selectFavoriteByComId(Integer comId);

    List<Favorite> selectAllFavoriteByUserNo(String userNo);

    boolean deleteFavoriteByComId(Integer comId);

}
